<?php
/**
 * Created by PhpStorm.
 * User: touchmini
 * Date: 14-2-11
 * Time: 下午4:53
 */
class Profile extends Eloquent
{
    protected $table = 'profile';

    protected $primaryKey = 'user_id';

    public function posts(){
    	return $this->hasMany('Posts','user_id');
    }
}